﻿using Newtonsoft.Json;

namespace DingTalk.Sdk.Request
{
    public class MarkdownRequest : IRequest
    {
        [JsonProperty("msgtype")]
        public string Msgtype { get; } = "markdown";

        [JsonProperty("markdown")]
        public MarkdownContent Markdown { get; set; }

        [JsonProperty("at")]
        public AtContent At { get; set; }
    }

    public class MarkdownContent
    {
        [JsonProperty("title")]
        public string Title { get; set; }

        [JsonProperty("text")]
        public string Text { get; set; }
    }
}
